<?php
class EducationUtility
{
    public static function getById($educationId)
    {
        return EducationModel::model()->findByPk($educationId);
    }

    public static function add($id, $name)
    {
        $education = new EducationModel();
        $education->id = $id;
        $education->name = $name;
        $education->save();

        return $education;
    }
}